import request from "@/utils/request";

/* 权重设置 */
export function lineWeight_index(params) {
  return request({
    url: "/lineWeight/index",
    method: "get",
    params
  });
}

export function lineWeight_bind(data) {
  return request({
    url: "/lineWeight/bind",
    method: "post",
    data: data
  });
}

export function lineWeight_delete(data) {
  return request({
    url: "/lineWeight/delete",
    method: "post",
    data: data
  });
}

export function lineWeight_getCarList(params) {
  return request({
    url: "/lineWeight/getCarList",
    method: "get",
    params
  });
}
export function lineWeight_getRegionList(params) {
  return request({
    url: "/lineWeight/getRegionList",
    method: "get",
    params
  });
}

/* 智能排线 */
export function lineSmartSet_index(params) {
  return request({
    url: "/lineSet/index",
    method: "get",
    params
  });
}

export function lineSmartSet_save(data) {
  return request({
    url: "/lineSet/save",
    method: "post",
    data: data
  });
}
export function lineSmartSet_change(data) {
  return request({
    url: "/lineSet/change",
    method: "post",
    data: data
  });
}

export function lineSmartSet_getCar(params) {
  return request({
    url: "/lineSet/getCar",
    method: "get",
    params
  });
}

/* 路线概况 */
export function lineDelivery_index(params) {
  return request({
    url: "/line/lineDelivery",
    method: "get",
    params
  });
}

/* 历史排线 */
export function lineHistory_index(params) {
  return request({
    url: "/lineSet/lineList",
    method: "get",
    params
  });
}

export function lineHistory_info(params) {
  return request({
    url: "/lineSet/info",
    method: "get",
    params
  });
}
